//动态设置html字体大小
const baseFontSIze = 32

function setRem() {
    const scale = document.documentElement.clientWidth / 750
    document.documentElement.style.fontSize = (baseFontSIze * Math.min(scale, 2)) + 'px'
}
setRem()
window.onresize = function() {
    setRem()
}